luci-app-acme: show _dns_options_alt only for validation_method: dns
authorSergey Ponomarev <[email protected]>
Sat, 4 Oct 2025 07:58:50 +0000 (10:58 +0300)
committerToke Høiland-Jørgensen <[email protected]>
Tue, 7 Oct 2025 12:01:06 +0000 (14:01 +0200)
Signed-off-by: Sergey Ponomarev <[email protected]>
applications/luci-app-acme/htdocs/luci-static/resources/view/acme/acme.js

index a53f5da5fd8c6d8029461388e875aae7abe9bfb0..8c27a80d6e9a08072bd880c4871491ed01f121b4 100644 (file)
@@ -171,6 +171,7 @@ return view.extend({
                o.modalonly = true;
 
                o = s.taboption('challenge_dns', form.Flag, '_dns_options_alt', _('Alternative DNS API options'), '');
+               o.depends('validation_method', 'dns');
                o.modalonly = true;
 
                for (let info of apiInfos) {